﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ViewModels.Shared;

namespace ViewModels.LogOn
{
    public class LogonModel : ICaptchaModel
    {
        public string Captcha { get; set; }

        [Required(ErrorMessage = "* 用户名不能为空")]
        public string PhoneNumberOrName { get;set; }

        [Required(ErrorMessage = "* 密码不能为空")]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "* 密码长度至少为6位")]
        public string Password { get; set; }
    }
}
